﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace AuthCenter.Intertructrue.Interface
{
    public interface IBaseRepository<T>
    {
        Task<int> AddAsync(T entity);
        Task<int> UpdateAsync(T entity);
        Task<int> DeleteAsync(T entity);
        IQueryable<T> GetAll();
        IQueryable<T> GetAllAsync(Expression<Func<T, bool>> expression);
    }
}
